package com.yilin.tms.system.service;



import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.system.system.AppBanner;
import com.yilin.tms.core.entity.user.account.Account;

import java.util.List;

/**
 * APP广告service
 *
 * @author zhangjinyuan
 * @date 2022/8/3
 */
public interface IAppBannerService extends IService<AppBanner> {
    PageData<AppBanner> getAppBannerPage(AppBanner query, Integer start, Integer limit);

    List<AppBanner> getReleaseAppBannerList();

    void saveAppBanner(Account loginUser, AppBanner appBanner);

    AppBanner getAppBannerById(String appBannerId);

    void editAppBanner(Account loginUser, AppBanner appBanner, AppBanner localAppBanner);

    boolean appBannerUpOrDown(Account loginUser, AppBanner localAppBanner);

    int removeAppBanner(Account loginUser, String[] appBannerIds);
}
